<?php

/*
 | ----------------------------------------------------------------------------------
 | Copyright (c) 2016 Suzhou ChaoTeng IOT Technology Co., Ltd. All rights reserved.
 | ----------------------------------------------------------------------------------
 | 苏州超腾物联科技有限公司 保留所有版权  网站:http://www.565tech.com  地址:常熟市湖山路99号
 | ----------------------------------------------------------------------------------
 | Create:  Fusky    |  E-Mail: choggle@565tech.com         |  2019-01-21 09:06:19
 | ----------------------------------------------------------------------------------
 | 
 | Application Routes
 | 
 | 
 */

header('Access-Control-Allow-Origin:*');
use Illuminate\Http\Request;

// 正式接口
$router->group(['namespace' => 'admin', 'prefix' => 'admin'], function () use ($router) {

	// 无登陆状态
    $router->post('/login', 'AuthController@login');
    $router->post('/smsCode', 'AuthController@smsCode');
    $router->post('/register', 'AuthController@register');
	$router->post('/upload', 'AuthController@upload_qiniu');
    
    // 登陆状态
    $router->group(['middleware' => 'auth'], function () use ($router) {
	    $router->post('/profile', 'AuthController@profile');
	    $router->post('/userEdit', 'AuthController@userEdit');
	    $router->post('/changePwd', 'AuthController@changePwd');

	});

   
});


